package Zuoye;

public class Book {
    private String name;
    private Double prize;

    public Book() {
    }

    public Book(String name, Double prize) {
        this.name = name;
        this.prize = prize;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return prize
     */
    public Double getPrize() {
        return prize;
    }

    /**
     * 设置
     * @param prize
     */
    public void setPrize(Double prize) {
        this.prize = prize;
    }

    public String toString() {
        return "Book{书名： " + name + ", 价格：" + prize + "}";
    }
}
